package com.neuedu.elmserver.controller;


import com.neuedu.elmserver.service.OrderitemService;
import com.neuedu.elmserver.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单明细/订单快照 前端控制器
 * </p>
 *
 * @author wyh
 * @since 2024-11-07
 */

@RestController
@RequestMapping("/orderitem")
@CrossOrigin
public class OrderitemController {
    @Autowired
    private OrderitemService orderitemService;
    /**
     * 查询指定订单的订单详情
     * @param orderId
     * @return
     */
    @GetMapping("/getOrderitemByorderId")
    public ResultVO getOrderitemByorderId(Integer orderId) {
        return orderitemService.getOrderitemByorderId(orderId);
    }

}
